From: Aaron Schulz Date: Mon, 27 Nov 2017 20:03:47 +0000 (-0800) Subject: Use WANObjectCache::makeKey() in ChangesFeed X-Git-Tag: 1.31.0-rc.0~1391^2 X-Git-Url: http://git.cyclocoop.org//%22http:/%22.attribut_html%28%24lesurls%5B%24numero%5D%29.%22/%22?a=commitdiff_plain;h=c8d82c02c3091b77cae1f7a076655165d0b35def;p=lhc%2Fweb%2Fwiklou.git Use WANObjectCache::makeKey() in ChangesFeed Change-Id: Ia029873e5d0883d177007555ad494cae9e00c407 --- diff --git a/includes/changes/ChangesFeed.php b/includes/changes/ChangesFeed.php index df964e0a2b..7ac8cd0ed0 100644 --- a/includes/changes/ChangesFeed.php +++ b/includes/changes/ChangesFeed.php @@ -82,10 +82,11 @@ class ChangesFeed { return null; } + $cache = ObjectCache::getMainWANInstance(); $optionsHash = md5( serialize( $opts->getAllValues() ) ) . $wgRenderHashAppend; - $timekey = wfMemcKey( + $timekey = $cache->makeKey( $this->type, $this->format, $wgLang->getCode(), $optionsHash, 'timestamp' ); - $key = wfMemcKey( $this->type, $this->format, $wgLang->getCode(), $optionsHash ); + $key = $cache->makeKey( $this->type, $this->format, $wgLang->getCode(), $optionsHash ); FeedUtils::checkPurge( $timekey, $key );